<script>
import Vue from 'vue';
export default {
	onLaunch: function() {
		uni.getSystemInfo({
			success: function(e) {
				// #ifndef MP
				Vue.prototype.StatusBar = e.statusBarHeight;
				if (e.platform == 'android') {
					Vue.prototype.CustomBar = e.statusBarHeight + 50;
				} else {
					Vue.prototype.CustomBar = e.statusBarHeight + 45;
				}
				Vue.prototype.WindowHight = e.windowHeight;
				Vue.prototype.CustomHight = e.windowHeight - Vue.prototype.CustomBar;
				var pxWidth = e.windowWidth;
				var top = (750 * Vue.prototype.CustomBar) / pxWidth;
				Vue.prototype.CustomTop = top;
				var top2 = (750 * (Vue.prototype.CustomBar + 30)) / pxWidth;
				Vue.prototype.CustomTop2 = top2;
				// #endif

				// #ifdef MP-WEIXIN
				Vue.prototype.StatusBar = e.statusBarHeight;
				let custom = wx.getMenuButtonBoundingClientRect();
				Vue.prototype.Custom = custom;
				Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
				// #endif

				// #ifdef MP-ALIPAY
				Vue.prototype.StatusBar = e.statusBarHeight;
				Vue.prototype.CustomBar = e.statusBarHeight + e.titleBarHeight;
				// #endif
				var platform = e.platform.toLocaleLowerCase();
				Vue.prototype.Platform = platform;
			}
		});
	}
};
</script>

<style lang="scss">
@import '@/uni_modules/uview-ui/theme.scss';
/*每个页面公共css */
.container {
	overflow: hidden;
	// #ifdef H5
	min-height: calc(100vh - var(--window-top) - var(--window-bottom));
	// #endif
	// #ifndef H5
	min-height: calc(100vh - var(--window-bottom));
	// #endif
	box-sizing: border-box;
}
.scrollFull {
	overflow: auto;
	// #ifdef H5
	height: calc(100vh - var(--window-top) - var(--window-bottom));
	// #endif
	// #ifndef H5
	height: calc(100vh - var(--window-bottom));
	// #endif
	box-sizing: border-box;
}

.flexC {
	display: flex;
	align-items: center;
	justify-content: center;
}

.text-line1 {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.text-line2 {
	word-break: break-all;
	overflow: hidden;
	display: -webkit-box;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}






</style>
